package cn.edu.seu.cose.qol.ws.resource.root;

import org.restlet.representation.Representation;
import org.restlet.representation.StringRepresentation;
import org.restlet.resource.Get;
import org.restlet.resource.Post;

import cn.edu.seu.cose.qol.ws.resource.QolServerResource;


public class RootResource extends QolServerResource {
	
	private static final String MESSAGE = "It works!";
	
	@Get
	public Representation getMessage() {
		return new StringRepresentation(MESSAGE);
	}
	
	@Post
	public Representation getVerification() {
		return new StringRepresentation(MESSAGE);
	}

}
